package cn.iocoder.boot.springai001.tools.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 修复SQL响应 VO
 *
 * @author Agent System
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "修复SQL响应")
public class FixSqlRespVO {

    @Schema(description = "是否成功", example = "true")
    private Boolean success;

    @Schema(description = "原始SQL", example = "SELECT COUNT(*) FROM users WHERE age > 18 AND")
    private String originalSql;

    @Schema(description = "修复后的SQL", example = "SELECT COUNT(*) FROM users WHERE age > 18")
    private String fixedSql;

    @Schema(description = "修复方法", example = "quick_fix")
    private String fixMethod;  // quick_fix 或 llm_fix

    @Schema(description = "修复说明", example = "删除了末尾多余的 AND")
    private String changes;

    @Schema(description = "原始错误信息")
    private String errorMessage;
}

